

function addSensorbitCod(Blockly) {




    //热敏传感器模块
  Blockly.Python.microbit_thermosensitive = function(block) {
    var dropdown_thermosensitive = this.getFieldValue('thermosensitive');
    Blockly.Python.definitions_['import_microbit'] = 'from microbit import *';
    Blockly.Python.definitions_['import_Thermal'] = 'from sensor import thermal';
    var code = "thermal.get_value("+ dropdown_thermosensitive +")";
    return [code];
  }
    return Blockly;
}

module.exports = addSensorbitCod;

